package com.annotation.configuration;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ConfigurationTest {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MainConfig.class);
        System.out.println(applicationContext.getBean(MainConfig.class));
    }
}
